<?php
namespace App\Http\Authentication;
use App\Role;
use App\User;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Redis;

trait UserAuthentication {
    protected $u_info;
    public function __construct(Request $request){
        $token = getToken($request);
        $uid =Redis::get("code:".$token);
        $this->u_info = User::find($uid);
    }

    public function auth_check($permiss){



    }
}
